package com.ktmall.service;

import com.ktmall.pojo.Order;
import com.ktmall.vo.PreOrder;

import java.util.List;

/**
 * 订单相关Service层
 */
public interface OrderService {
    public int saveOrder(Order order);

    public Order findById(Integer id);

    public int getCount(Integer userId,Integer orderState);

    public List<Order> getOrderListPage(Integer currentPageNo, Integer pageSize, Integer userId, Integer orderState);

    public int updatePayStatus(Order orderInfo);

    PreOrder buyAgain(Integer userId,Integer orderId);

    public int takeGoods(Integer id);

    public int review(Integer id);
}
